import { defineUniPages } from '@uni-helper/vite-plugin-uni-pages'

export default defineUniPages({
  globalStyle: {
    navigationStyle: 'default',
    navigationBarTitleText: '惠赚生活',
    navigationBarBackgroundColor: '#f8f8f8',
    navigationBarTextStyle: 'black',
    backgroundColor: '#FFFFFF',
  },
  easycom: {
    autoscan: true,
    custom: {
      '^uv-(.*)': '@climblee/uv-ui/components/uv-$1/uv-$1.vue',
      '^(?!z-paging-refresh|z-paging-load-more)z-paging(.*)':
        'z-paging/components/z-paging$1/z-paging$1.vue',
    },
  },
  tabBar: {
    color: '#666666',
    selectedColor: '#FE850F',
    borderStyle: 'white',
    backgroundColor: '#FFFFFF',
    height: '168rpx',
    fontSize: '20rpx',
    iconWidth: '48rpx',
    spacing: '3px',

    list: [
      {
        iconPath: 'static/tabbar/house.png',
        selectedIconPath: 'static/tabbar/house-active.png',
        pagePath: 'pages/home/index',
        text: '首页',
      },

      {
        iconPath: 'static/tabbar/peop.png',
        selectedIconPath: 'static/tabbar/peop-active.png',
        pagePath: 'pages/me/index',
        text: '我的',
      },
    ],
  },
})
